/**
 * Common
 */

 var storage = require("../../../../utils/storage");
 var Common = {
    componentDidMount(){
        var data = this.props.data,
            root = this.props.root;
        // 点击模板保存组件id
        $(this.refs.content).click(function (){
//            storage.data.selectedWidgetIds = [];
//            storage.data.selectedWidgetId = data.id;
//            storage.addSelectedWidgetId(data.id);
//            var focusTab = root.state.focusTab;
//            var page_id = storage.data.page.page_id;
//            root.updateState(page_id, storage.data.selectedWidgetIds, {
//                focusTab: focusTab
//            });
             
        });
        $(this.refs.content).attr('id',data.id);
    },
    selectedContent(){
        const {setState} = this.props;
        console.log("点击模板保存组件id????");
    }
 };

 module.exports = Common;
